package com.wanghua.mall.product.dao;

import com.wanghua.mall.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanghua.mall.product.frontvo.SkuItemVo;
import com.wanghua.mall.product.frontvo.SpuItemAttrGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 *
 * @author wanghua
 * @email 2367279431@qq.com
 * @date 2021-08-23 16:10:06
 */
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    //获取spu下所有分组&关联属性   groupName/attrName/attrValue
    List<SpuItemAttrGroup> getAllAttrGroupAndAttrBySpuId(@Param("spuId") Long spuId);
}
